package com.chisheng.caa.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("教师信息类")
@TableName("t_teacher")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("教师信息 ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String teacherId;

    @ApiModelProperty("教师姓名")
    private String teacherName;

    @ApiModelProperty("教师所属学院信息 ID")
    private String collegeId;

    @ApiModelProperty("状态位")
    private Boolean status;

    @TableLogic
    @ApiModelProperty("逻辑删除位")
    private Integer deleted;

    @Version
    @ApiModelProperty("乐观锁位")
    private Integer version;

    @ApiModelProperty("记录创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;

    @ApiModelProperty("记录修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

}
